package com.Guo.system.mapper;

import com.Guo.system.entity.User;
import com.Guo.system.vo.UserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author Guo
 * @since 2020-12-01
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * @Param(Constants.WRAPPER)为queryWrapper起别名
     */
    List<User> findUserPage(@Param("page") Page<User> page, @Param("userVO") UserVO userVO);


    User binding(@Param("id") Long id);

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    User selectByName(String username);



}
